﻿CREATE TABLE [dbo].[Thread] (
    [id] INT NOT NULL,
    [title] NVARCHAR(50) NOT NULL, 
    [body] NVARCHAR(50) NOT NULL, 
    [creationTime] TIME NOT NULL, 
    [user] NVARCHAR(50) NOT NULL, 
    [forumId] INT NOT NULL, 
    [subForumId] INT NOT NULL, 
    [idForPosts] INT NOT NULL, 
    PRIMARY KEY CLUSTERED ([id],  [forumId], [subForumId])
);

